/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

const signedsource = require('signedsource');

function apiSnapshotTemplate(source: string): string {
  return signedsource.signFile(
    `/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * ${signedsource.getSigningToken()}
 *
 * This file was generated by scripts/js-api/build-types/index.js.
 */

// ----------------------------------------------------------------------------
// JavaScript API snapshot for react-native.
//
// This snapshot captures the public JavaScript API of React Native, based on
// types exported by packages/react-native/index.js.flow.
//
// Modifications to this file indicate changes to the shape of JavaScript
// values and types that can be imported from the react-native package.
// ----------------------------------------------------------------------------

/* eslint-disable redundant-undefined/redundant-undefined */

${source}
`,
  );
}

module.exports = apiSnapshotTemplate;
